import request from '@/utils/request'

// 查询项目开标列表
export function listOpenBind(query) {
  return request({
    url: '/purs/openBind/list',
    method: 'get',
    params: query
  })
}

// 查询项目开标详细
export function getOpenBind(openCode) {
  return request({
    url: '/purs/openBind/' + openCode,
    method: 'get'
  })
}

// 新增项目开标
export function addOpenBind(data) {
  return request({
    url: '/purs/openBind',
    method: 'post',
    data: data
  })
}

// 修改项目开标
export function updateOpenBind(data) {
  return request({
    url: '/purs/openBind',
    method: 'put',
    data: data
  })
}

// 删除项目开标
export function delOpenBind(openCode) {
  return request({
    url: '/purs/openBind/' + openCode,
    method: 'delete'
  })
}
